package com.yzc.constant;

public class RedisConstant {

    //用户登录
    public static final String USER_LOGIN_KEY_PREFIX = "user:login:";
    public static final String USER_LOGIN_REFRESH_KEY_PREFIX = "user:login:refresh:";
    public static final int USER_LOGIN_KEY_TIMEOUT = 60 * 60 * 24 * 100;
    public static final int USER_LOGIN_REFRESH_KEY_TIMEOUT = 60 * 60 * 24 * 365;

    public static final String ORDER_RECORD_MAIN = "order:record:main:";    //主订单记录
    public static final String INVENTORY_DEDUCTION_LOG = "inventory:deduction:log:";
    public static final String ATTRACTION_ORDER_VO = "attraction:order:vo:";
    public static final String INVENTORY_ROLLBACK_STATUS = "inventory:rollback:status:";

    public static final int CACHE_EXPIRE_TIME = 600; // 缓存基础过期时间（秒）
    public static final int CACHE_RANDOM_RANGE = 60;
}
